import request from '@/utils/request'

// 查询实验学生列表
export function listExpstu(query) {
  return request({
    url: '/edu/expstu/list',
    method: 'get',
    params: query
  })
}

// 查询实验学生详细
export function getExpstu(id) {
  return request({
    url: '/edu/expstu/' + id,
    method: 'get'
  })
}

// 新增实验学生
export function addExpstu(data) {
  return request({
    url: '/edu/expstu',
    method: 'post',
    data: data
  })
}

// 修改实验学生
export function updateExpstu(data) {
  return request({
    url: '/edu/expstu',
    method: 'put',
    data: data
  })
}

// 删除实验学生
export function delExpstu(id) {
  return request({
    url: '/edu/expstu/' + id,
    method: 'delete'
  })
}
